/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import React from 'react';
import config from './CommonComp/configs/histogram';
import Histogram from './CommonComp/Histogram';

/**
 * 中邮大屏：昨日到件量排名 | 昨日到件品牌排名
 *  */
const YesterdayHistogram = props => {
  const { isParentFull, type } = props;

  return (
    <Histogram
      title={config[type].title}
      dispatchType={config[type].dispatchType}
      isParentFull={isParentFull}
      xKey={config[type].xKey}
      yKey={config[type].yKey}
      tooltip={config[type].tooltip}
      type="zyyl"
      cols={{
        sum_num: {
          alias: '数量',
          type: 'pow',
          exponent: 10,
          min: 0,
        },
      }}
    />
  );
};

export default YesterdayHistogram;
